package com.newasia.management.dal.user.persistence;

import com.newasia.management.dal.user.entitys.SysMenu;
import com.newasia.management.dal.user.entitys.SysMenuExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysMenuMapper {
    int deleteByPrimaryKey(Long menuId);

    int insert(SysMenu record);

    int insertSelective(SysMenu record);

    SysMenu selectByPrimaryKey(Long menuId);

    int updateByPrimaryKeySelective(SysMenu record);

    int updateByPrimaryKey(SysMenu record);


    List<SysMenu> selectSysMenuByRoleId(Long roleId);

    List<SysMenu> selectSysMenu(Integer status);

    long countByExample(SysMenuExample example);

    int deleteByExample(SysMenuExample example);



    List<SysMenu> selectByExample(SysMenuExample example);



    int updateByExampleSelective(@Param("record") SysMenu record, @Param("example") SysMenuExample example);

    int updateByExample(@Param("record") SysMenu record, @Param("example") SysMenuExample example);


}